<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<script src="../vue.js"></script>

<body>
  <div id="app"></div>

  <script>
    Vue.mixin({
      created() {
        var myOption = this.$options.myOption;
        if (myOption) {
          console.log(myOption.toUpperCase());
        }
      }
    })

    var vm = new Vue({
      el: "#app",
      // 自定义属性
      myOption: "hello vue"
    })
  </script>
</body>

</html>